import Vue from 'vue'
import Router from 'vue-router'
import ECharts from '@/components/ECharts'
import Swiper from '@/components/Swiper'
import Shouye from '@/view/Shouye'
import Dasai from '@/view/Dasai'
import Canjia from '@/view/Canjia'
import Nan from '@/view/Nan'
import Vip from '@/view/Vip'
import Qianyue from '@/view/Qianyue'
import Gefang from '@/view/Gefang'
import Tequan from '@/view/huiyuan/Tequan'

Vue.use(Router)
export default new Router({
  routes: [{
      path: '/',
      name: 'Shouye',
      component: Shouye
    },
    {
      path: '/dasai',
      name: 'Dasai',
      component: Dasai,
    },
    {
      path: '/canjia/:id',
      name: 'Canjia',
      component: Canjia,
    },
    {
      path: '/gefang',
      name: 'Gefang',
      component: Gefang,
    },
    {
      path: '/echarts',
      name: 'ECharts',
      component: ECharts
    },
    {
      path: '/swiper',
      name: 'Swiper',
      component: Swiper
    },
    {
      path: '/tequan',
      name: 'Tequan',
      component: Tequan
    },
    {
      path: '/vip',
      name: 'Vip',
      component: Vip
    },
    {
      path: '/qianyue',
      name: 'Qianyue',
      component: Qianyue
    },
    {
      path: '*',
      component: Nan
    }
  ]
})
